home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: mxsld2.pd.infn.it!LORETI
- From: loreti@mxsld2.pd.infn.it (Maurizio Loreti)
- Subject: Re: Checking for a file => Does it exist (Help)
- X-Nntp-Posting-Host: mxsld2.pd.infn.it
- Message-ID: <DLF3zJ.43p@news.cern.ch>
- Sender: news@news.cern.ch (USENET News System)
- Reply-To: loreti@mxsld2.pd.infn.it
- Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
- References: <4d9k6fINNnja@faatcrl.faa.gov> <4dc6kq$dja@gryphon.phoenix.net>,<30FCF419.3B44@rennes.cern.ch>
- Date: Fri, 19 Jan 1996 07:40:29 GMT
-
- In article <30FCF419.3B44@rennes.cern.ch>, "S. Lechner" <slechner@rennes.cern.ch> writes:
- >Use the C function access(filename,status)
- >
- >Stef.
-
- 'access' is NOT a standard C function; is not listed in K&R I or II,
- or Plauger. Your best bet is to try to open the file for reading; but
- this can fail not only if the file does not exist - also if you don't
- have permission to read and so on.
- --
- Maurizio Loreti http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
- Un. of Padova, Dept. of Physics - Padova, Italy loreti@padova.infn.it
-